#include "teacherinfo.h"

TeacherInfo::TeacherInfo()
{
    m_id.clear();
    m_name.clear();
    m_dept.clear();
    m_post.clear();
}

TeacherInfo::TeacherInfo(const string &id, const string &name,
            const string &dept, const string &post)
{
    m_id = id;
    m_name = name;
    m_dept = dept;
    m_post = post;
}

void TeacherInfo::display(void) const
{
    cout << "ID: " << m_id << endl;
    cout << "Name: " << m_name << endl;
    cout << "Dept: " << m_dept << endl;
    cout << "Post: " << m_post << endl;
}

void TeacherInfo::setID(const string &id)
{
    m_id = id;
}

void TeacherInfo::setName(const string &name)
{
    m_name = name;
}

void TeacherInfo::setDept(const string &dept)
{
    m_dept = dept;
}

void TeacherInfo::setPost(const string &post)
{
    m_post = post;
}

const string &TeacherInfo::getID() const
{
    return m_id;
}
const string &TeacherInfo::getName() const
{
    return m_name;
}
const string &TeacherInfo::getDept() const
{
    return m_dept;
}
const string &TeacherInfo::getPost() const
{
    return m_post;
}
